/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Structural.Decorator;

/**
 *
 * @author Alumno
 */
public class Test {
    
    public static void main (String[] args){
        
        
        
        Vendible auto = new Toyota();
        
        auto = new CdPlayer(auto);
        auto = new Petrolero(auto);
        
        System.out.println(auto.getDescripcion());
        System.out.println("Su precio0 es :  " + auto.getPrecio());
        
        Vendible auto1 = new KiaPop();
        auto1 = new Mp3Player(auto1);
        auto1 = new Petrolero(auto1);
        auto1 =  new AireAcondicionado(auto1);
        
        System.out.println(auto.getDescripcion());
        System.out.println("Su precio0 es :  " + auto.getPrecio());
        
        
        
        
        
        
    }
    
}
